<template>
  <div class="big_box" v-if="formData.showTop">
    <!-- <div class="wrapper" @click.stop> -->
      <div class="block">
        <div class="top_msg">
          <div class="message">温馨提示</div>
          <div>
            <img @click="determine"  class="err_img" src="../assets/images/false.png" alt="">
          </div>
        </div>
        <div class="main-box">
          <div class="lessee">{{ formData.text }}</div>
          <div class="sure" @click="determine">确定</div>
        </div>
      </div>2
    <!-- </div> -->
  </div>
</template>
<script>
  export default {
    props: {
      formData: {
        type: Object,
        default: () => {}
      }
    },
    methods: {
      determine () {
        this.formData.showTop = false
      }
    }
  }
</script>
<style  scoped>
  .big_box{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,.7);
  }
  /* .wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90%;
  } */
  .block {
    width: 80%;
    height: auto;
    background-color: #fff;
    border-radius: .185185rem;
    overflow: hidden;
    position: absolute;
    left: 50%;
    top:50%;
    transform:translate(-50%,-50%);
    
  }
  .top_msg{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 10px;
    border-bottom: 1Px solid #dddddd;
    background-color: #fff;
  }
  .err_img{
    width:0.3467rem;
    height: 0.3467rem;
    margin-right: 0.2667rem;
  }
  .message{
    display: block;
    font-size:0.38rem;
    margin-left: 0.2667rem;
    color: black;
    font-weight: bold;
  }
  .main-box {
    padding: 100px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #fff;
  }
  .lessee{
    font-size:  0.4rem;
    text-align: center;
    margin-bottom: 60px;
  }
  .sure{
    width: 50%;
    height:1.3333rem;
    background: #4367fd;
    text-align: center;
    line-height: 1.3333rem;
    color: #FFFFFF;
    border-radius: 0.6667rem;
    font-size: 0.4rem;
  }
</style>
